]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Honor alpha range specified by pango_attr_foreground_alpha_new()
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 28 Mar 2020 15:38:14 +0000 (16:38 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Sat, 28 Mar 2020 16:58:30 +0000 (16:58 +0000)
commit656168543f30b20cd33b456bc39d202a26ec090a
tree5fcbfb146bb7d2a116f1488bb580ad81e1428835
parent8378c9c9e03e7a8d0fdb382c473f0d18da02d1f5
st: Honor alpha range specified by pango_attr_foreground_alpha_new()

This is documented as a value between 1 and 65536. However we were passing
a 0 value for 100% transparent colors, which is interpreted as "system
inherited" in pango_renderer_get_alpha() docs.

Ensure we respect this range by specifying the minimum allowed alpha (1)
if the color is fully transparent. If someone notices this 1/65535th change
I'll ask him how many pleiades can he count.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2504
(yes, again).
src/st/st-private.c